n = eval(input())

s = 0
f = 1 # 用于记录 n!的值
for i in range(1,n+1):
    f = f*i # i! = (i-1)! * i
    s += f

print('n={},s={}'.format(n,s))